numberList=[1,2,3,4]
complexList=[]
def zuhenumber():
    for i in numberList:
        for j in numberList:
            for k in numberList:
                if i!=j and k != j and i != k:
                    complexList.append(str(i)+str(j)+str(k))
    print("共有{}组合，组合为{}".format(len(complexList),complexList))


zuhenumber()